package com.lantosec.hmrp.modules.category.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lantosec.hmrp.core.kit.PageVO;
import com.lantosec.hmrp.modules.category.entity.AssetsCheckNote;
import com.lantosec.hmrp.modules.category.entity.AssetsInfo;
import com.lantosec.hmrp.modules.category.entity.AuditInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 盘点记录 Mapper 接口
 * </p>
 *
 * @author AutoCode
 * @since 2020-04-02
 */
public interface AssetsCheckNoteMapper extends BaseMapper<AssetsCheckNote> {

    String queryHistoryPic(String assetsId);

    List<AssetsInfo> deptUnfinished(@Param("planId") String planId, @Param("deptId") String deptId);

    List<AssetsInfo> areaUnfinished(@Param("planId") String planId,@Param("areaId") String areaId);

    List<AssetsInfo> queryDeptUnfinished(@Param("planId") String planId, @Param("deptId") String deptId,@Param("categoryList") String categoryList);

    List<AssetsInfo> queryAreaUnfinished(@Param("planId") String planId, @Param("areaId") String areaId,@Param("categoryList") String categoryList);

    Integer deptSummaryNumber(@Param("deptId") String deptId,@Param("areaId") String areaId,@Param("categoryList") String categoryList);

    Integer checkSummaryNumber(String assetsId);

    PageVO<AssetsCheckNote> normalUnaudited(PageVO<AssetsCheckNote> page, @Param("info") AuditInfo info);

    PageVO<AssetsCheckNote> changeUnaudited(PageVO<AssetsCheckNote> page, @Param("info")AuditInfo info);

    void updateInfo(@Param("checkState") Integer checkState, @Param("summaryNumber")Integer summaryNumber, @Param("assetsId")String assetsId);

    List<AssetsCheckNote> getTotalNum(@Param("planId") String planId, @Param("deptId") String deptId, @Param("areaId") String areaId);

    String categoryList(String planId);

    List<AssetsCheckNote> getFinishList(@Param("planId")String planId,@Param("areaId")String areaId, @Param("deptId")String deptId, @Param("categoryList")String categoryList);
}
